@echo off
echo Building Bou Scheduler Project...
echo.

echo Cleaning previous build...
call mvn clean

echo.
echo Compiling project...
call mvn compile

echo.
echo Running tests...
call mvn test

echo.
echo Building project...
call mvn package -DskipTests

echo.
echo Build completed successfully!
echo.
echo Generated artifacts:
echo - bou-scheduler-core/target/bou-scheduler-core-1.0.0.jar
echo - bou-scheduler-redis/target/bou-scheduler-redis-1.0.0.jar
echo - bou-scheduler-netty/target/bou-scheduler-netty-1.0.0.jar
echo - bou-scheduler-spring-boot-starter/target/bou-scheduler-spring-boot-starter-1.0.0.jar
echo - bou-scheduler-web/target/bou-scheduler-web-1.0.0.jar
echo - bou-scheduler-example/target/bou-scheduler-example-1.0.0.jar

pause
